package uy.com.tsi2G7.superbet.account;

import java.math.BigDecimal;
import java.rmi.RemoteException;

import javax.ejb.Local;

import uy.com.tsi2G7.superbet.account.dao.AccountNotFoundException;
import uy.com.tsi2G7.superbet.account.dao.AccountStoreException;

@Local
public interface AccountService {
	void storeAccount(Account account) throws RemoteException, AccountStoreException;
	public Account getAccount(String userId) throws RemoteException, AccountNotFoundException;
    void activateAccount(String user) throws RemoteException, AccountStoreException;
	void debitBet(BigDecimal amount, String userId) throws RemoteException, AccountNotFoundException, InsufficientFoundException;
	void creditBet(BigDecimal amount, String userId) throws RemoteException, AccountNotFoundException;
	void creditAmount(BigDecimal amount, String principal) throws RemoteException, AccountNotFoundException;
	public void debitAmount(BigDecimal amount, String userId)throws RemoteException, AccountNotFoundException;
}	
